<!DOCTYPE html>
<html>
<head>
	<title>segway discovery</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<meta name="viewport" content="width=device-width,user-scalable=yes" />
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="<?= $domain['static'] ?>
	business/css/common.css">
	<link rel="stylesheet" type="text/css" href="<?= $domain['static'] ?>business/css/luxian_list.css"></head>
<body>
	<?php
// 这里是包含子模板方法
$this->
	load->view('business/templates/header');
?>
	<div class="business_luxian_list">
		<div class="luxian_tit">
			<h1 class="list list_h1">
				<div class="div"><?php echo lang('touroute_field_name');?></div>
				<div class="div"><?php echo lang('touroute_field_product_inventory');?></div>
				<div class="div"><?php echo lang('touroute_field_price');?></div>
				<div class="div"><?php echo lang('touroute_field_duration');?></div>
				<div class="div"><?php echo lang('common_field_status_on_or_off');?></div>
				<div class="div"><?php echo lang('common_words_edit');?></div>
			</h1>
		</div>
		<ul class="luxian_ul">
		


	<?php 
	
	foreach ($list['data'] as $key => $value) { ?>
	
 
		<li class="list list_list">
			<div class="div"><?php echo $value["name"];?></div>
			<div class="div"><?php echo $value["product_inventory"];?></div>
			<div class="div">

			<?php
				if (!empty($value["channel_currency"])) {
					
					 echo $header['currency_mapper'][$value["channel_currency"]] ;
				}

			 ?>
			


			<?php echo $value["channel_amount"];?></div>
			<div class="div"><?php echo $value["duration"];?></div>
			<div class="div">
				
					<!-- <input type="checkbox" value="None" id="slideThree" name="check" checked /> -->

				

					<?php 
						if (!in_array('enabled', $value['status_tags'])) { //off
							echo "<div class='on_off on_offbg'><label for='on_off' class='on_of_btn st' data-id='{$value["id"]}' ></label></div>";
						}else{//on
							echo "<div class='on_off'><label for='on_off' class='on_of_btn' data-id='{$value["id"]}' ></label></div>";
						}
					?>
					
			</div>
			<div class="div">
				<a href="/business/touroute/detail/<?php echo $value["id"];?>/<?php echo $header["current_language"];?>"><img class="edit_luxian" src="<?= $domain['static'] ?>business/images/edit.png" alt=""></a></div>
		</li>

	<?php } ?>

			
			

			<div class="add">
				<a href="/business/touroute/detail/0/<?php echo $header["current_language"];?>"><img src="<?= $domain['static'] ?>business/images/add.png" alt=""></a></div>
		</ul>

<?php
echo "<div class='pages'>";
for ($page = 1; $page <= $list['pages']['count']; $page ++) {
	if ($page == $list['pages']['page']) {
		$class = "pagescur";


	}else{
		$class = "";
	}
	printf("<span>%s</span>", anchor("/business/touroute/listing/{$page}/{$list['pages']['size']}", $page,["class"=>$class]));
}


	printf("共 %d 条, 第 %d 页 / 共 %d 页, 每页 %d 条", $list['pages']['total'], $list['pages']['page'], $list['pages']['count'], $list['pages']['size']);
		
echo "</div>";
?>

	</div>
	<?php
// 这里是包含子模板方法
$this->
	load->view('business/templates/footer');
?>
<script src="<?= $domain['static'] ?>business/js/jquery.min.js"></script>
<script src="<?= $domain['static'] ?>business/js/common.js"></script>
	<script type="text/javascript" src="<?= $domain['static'] ?>business/js/luxian_list.js"></script>
</body>
</html>